<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head profile="http://selenium-ide.openqa.org/profiles/test-case">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link rel="selenium.base" href="http://localhost/aliman/milos2_FlyUI_Trunk/" />
<title>testCase</title>
</head>
<body>
<table cellpadding="1" cellspacing="1" border="1">
<thead>
<tr><td rowspan="1" colspan="3">testCase</td></tr>
</thead><tbody>
<!--TODO don't forget to set the base URL for your development setup-->
<tr>
	<td>open</td>
	<td>src/apps/genefinder/</td>
	<td></td>
</tr>
<tr>
	<td>waitForPageToLoad</td>
	<td>3000</td>
	<td></td>
</tr>
<tr>
	<td>verifyElementPresent</td>
	<td>loadingPane</td>
	<td></td>
</tr>
<tr>
	<td>verifyElementPresent</td>
	<td>applicationPane</td>
	<td></td>
</tr>
<tr>
	<td>verifyElementPresent</td>
	<td>queryForm</td>
	<td></td>
</tr>
<tr>
	<td>verifyElementPresent</td>
	<td>queryInput</td>
	<td></td>
</tr>
<tr>
	<td>verifyVisible</td>
	<td>applicationPane</td>
	<td></td>
</tr>
<tr>
	<td>verifyNotVisible</td>
	<td>loadingPane</td>
	<td></td>
</tr>
<!--Test with a query returning a single gene...-->
<tr>
	<td>type</td>
	<td>queryInput</td>
	<td>aly</td>
</tr>
<tr>
	<td>click</td>
	<td>//input[@value='Go']</td>
	<td></td>
</tr>
<tr>
	<td>verifyTextPresent</td>
	<td>Found 1 matches</td>
	<td></td>
</tr>
<tr>
	<td>verifyTextPresent</td>
	<td>for query &quot;aly&quot;</td>
	<td></td>
</tr>
<tr>
	<td>verifyTextPresent</td>
	<td>CG2075</td>
	<td></td>
</tr>
<tr>
	<td>verifyTextPresent</td>
	<td>always early</td>
	<td></td>
</tr>
<tr>
	<td>verifyTextNotPresent</td>
	<td>this should never be displayed</td>
	<td></td>
</tr>
<tr>
	<td>verifyTextPresent</td>
	<td>FBgn0004372</td>
	<td></td>
</tr>
<!--Test with a query returning two genes...-->
<tr>
	<td>type</td>
	<td>queryInput</td>
	<td>rbf</td>
</tr>
<tr>
	<td>click</td>
	<td>//input[@value='Go']</td>
	<td></td>
</tr>
<tr>
	<td>verifyTextPresent</td>
	<td>Found 2 matches</td>
	<td></td>
</tr>
<tr>
	<td>verifyTextPresent</td>
	<td>for query &quot;rbf&quot;</td>
	<td></td>
</tr>
<tr>
	<td>verifyTextPresent</td>
	<td>CG7413</td>
	<td></td>
</tr>
<tr>
	<td>verifyTextPresent</td>
	<td>retinoblastoma</td>
	<td></td>
</tr>
<tr>
	<td>verifyTextNotPresent</td>
	<td>this should never be displayed</td>
	<td></td>
</tr>
<tr>
	<td>verifyTextPresent</td>
	<td>FBgn0015799</td>
	<td></td>
</tr>
<tr>
	<td>verifyTextPresent</td>
	<td>CG6354</td>
	<td></td>
</tr>
<tr>
	<td>verifyTextPresent</td>
	<td>Ribonuclear protein at 97D</td>
	<td></td>
</tr>
<tr>
	<td>verifyTextPresent</td>
	<td>FBgn0004903</td>
	<td></td>
</tr>
<!--Test with a query returning no genes...-->
<tr>
	<td>type</td>
	<td>queryInput</td>
	<td>foo</td>
</tr>
<tr>
	<td>click</td>
	<td>//input[@value='Go']</td>
	<td></td>
</tr>
<tr>
	<td>verifyTextPresent</td>
	<td>Found 0 matches</td>
	<td></td>
</tr>
<tr>
	<td>verifyTextPresent</td>
	<td>for query &quot;foo&quot;</td>
	<td></td>
</tr>
<tr>
	<td>verifyTextNotPresent</td>
	<td>CG7413</td>
	<td></td>
</tr>
<tr>
	<td>verifyTextNotPresent</td>
	<td>retinoblastoma</td>
	<td></td>
</tr>
<tr>
	<td>verifyTextNotPresent</td>
	<td>this should never be displayed</td>
	<td></td>
</tr>
<tr>
	<td>verifyTextNotPresent</td>
	<td>FBgn0015799</td>
	<td></td>
</tr>

</tbody></table>
</body>
</html>
